//
//  LSTestSelectModel.m
//  LaSaCivilAffairsDepartment
//
//  Created by 聂志康 on 2019/7/26.
//  Copyright © 2019 wpkj. All rights reserved.
//

#import "LSTestSelectModel.h"

@implementation LSTestSelectModel
- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        // 给模型属性赋值
        [self setValuesForKeysWithDictionary:dict];
        self.isOpen = false;
        self.bottomDataArrayM = [[NSMutableArray alloc] init];
        self.isParent = true;//初始都为最高级
        self.id = dict[@"id"];
        self.pid = dict[@"pid"];
        self.code = dict[@"code"];
        self.level = 1;
    }
    return self;
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    // 屏蔽空值，以免崩溃
}


+ (instancetype)testSelectModelWithDict:(NSDictionary *)dict {
    
    return [[self alloc] initWithDict:dict];
}
@end
